package com.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.common.CommonResult;
import com.teacher.pojo.vo.role.RoleAddVo;
import com.teacher.pojo.vo.role.RoleUpdatePermissionVo;
import com.teacher.pojo.vo.role.RoleUpdateVo;
import com.teacher.pojo.entity.Role;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zfm
 * @since 2020-06-02
 */
public interface IRoleService extends IService<Role> {

    /**
     * 添加角色
     *
     * @param roleAddVo
     * @return
     */
    CommonResult<String> addRole(RoleAddVo roleAddVo);

    /**
     * 更新角色
     *
     * @param roleUpdateVo
     * @return
     */
    CommonResult<String> updateRole(RoleUpdateVo roleUpdateVo);

    /**
     * update permission by role's id
     *
     * @param roleUpdatePermissionVo
     * @return
     */
    CommonResult<String> updatePermissionByRoleId(RoleUpdatePermissionVo roleUpdatePermissionVo);
}
